     <?php
    /**
    3  * OrangeHRM Enterprise is a closed sourced comprehensive Human Resource Management (HRM)
    4  * System that captures all the essential functionalities required for any enterprise.
    5  * Copyright (C) 2006 OrangeHRM Inc., http://www.orangehrm.com
    6  *
    7  * OrangeHRM Inc is the owner of the patent, copyright, trade secrets, trademarks and any
    8  * other intellectual property rights which subsist in the Licensed Materials. OrangeHRM Inc
    9  * is the owner of the media / downloaded OrangeHRM Enterprise software files on which the
   10  * Licensed Materials are received. Title to the Licensed Materials and media shall remain
   11  * vested in OrangeHRM Inc. For the avoidance of doubt title and all intellectual property
   12  * rights to any design, new software, new protocol, new interface, enhancement, update,
   13  * derivative works, revised screen text or any other items that OrangeHRM Inc creates for
   14  * Customer shall remain vested in OrangeHRM Inc. Any rights not expressly granted herein are
   15  * reserved to OrangeHRM Inc.
   16  *
   17  * You should have received a copy of the OrangeHRM Enterprise  proprietary license file along
   18  * with this program; if not, write to the OrangeHRM Inc. 538 Teal Plaza, Secaucus , NJ 0709
   19  * to get the file.
   20  *
   21  */
    
     require_once ROOT_PATH . '/plugins/ldap/LdapDetails.php';
     class EXTRACTOR_LdapDetails {
    
    	function EXTRACTOR_LdapDetails() {
    
    		$this->ldapDetails = new LdapDetails();
    	}
    	 
    	function parseEditData($postArr) {
    
    			$this->ldapDetails->setLdapServer($postArr['txtLDAPServer']);
    			$this->ldapDetails->setLdapPort($postArr['txtLDAPPort']);
    			$this->ldapDetails->setLdapDomainName($postArr['txtLDAPDomainName']);
    			if (isset($postArr['cbLDAPEnable'])) {
    				$this->ldapDetails->setLdapStatus("enabled");
    			} else {
    				$this->ldapDetails->setLdapStatus("disabled");
    			}
    			return $this->ldapDetails;
    	}
    }
    ?>
